package com.activiti.ActivitiUtils.builder.payload.process.instance;

import java.util.Map;

/**
 * create by chongyahhh
 * 2020/4/4
 */
public class ProcessInstanceStartPayload {
    private String processDefinitionKey;
    private String businessKey;
    private String processDefinitionId;
    private Map<String,Object> variables;

    public ProcessInstanceStartPayload() {
    }

    public String getProcessDefinitionKey() {
        return processDefinitionKey;
    }

    public void setProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
    }

    public String getBusinessKey() {
        return businessKey;
    }

    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public Map<String, Object> getVariables() {
        return variables;
    }

    public void setVariables(Map<String, Object> variables) {
        this.variables = variables;
    }

    public ProcessInstanceStartPayload withBusinessKey(String businessKey) {
        this.businessKey = businessKey;
        return this;
    }

    public ProcessInstanceStartPayload withProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
        return this;
    }

    public ProcessInstanceStartPayload withVariables(Map<String, Object> variables) {
        this.variables = variables;
        return this;
    }

    public ProcessInstanceStartPayload withProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
        return this;
    }

}
